﻿// ==========================================================
// File: TeamWorkNet.Portable.Project.cs
// Created: 14.02.2015
// Created By: Tim cadenbach
// 
// Copyright (C) 2015 Tim Cadenbach
// License: Apache License 2.0
// ==========================================================

using System.Collections.Generic;
using Newtonsoft.Json;

namespace TeamWorkNet.Model
{

  public class AddResponse
  {
    [JsonProperty(PropertyName = "MESSAGE")]
    public string Message { get; set; }
    [JsonProperty(PropertyName = "id")]
    public int id { get; set; }
    [JsonProperty(PropertyName = "STATUS")]
    public string status { get; set; }
  }

  public partial class Project : TeamworkObjectBase
  {
    public Company company { get; set; }
    public bool starred { get; set; }
    public string name { get; set; }

    [JsonProperty(PropertyName = "show-announcement")]
    public bool ShowAnnouncement { get; set; }

    public string announcement { get; set; }
    public string description { get; set; }
    public string status { get; set; }
    public bool isProjectAdmin { get; set; }

    [JsonProperty(PropertyName = "created-on")]
    public string createdon { get; set; }

    public Category category { get; set; }

    [JsonProperty(PropertyName = "start-page ")]
    public string Startpage { get; set; }

    public string startDate { get; set; }
    public string logo { get; set; }
    public bool notifyeveryone { get; set; }
    public string id { get; set; }

    [JsonProperty(PropertyName = "last-changed-on")]
    public string LastChangedOn { get; set; }

    public string endDate { get; set; }

    public List<Milestone> Milestones { get; set; } 
    public List<TodoList> Tasklists { get; set; }
    public List<Person> People { get; set; }



    public void SetProjectEmailAddressCode(string code)
    {
      
    }
  }
}